package com.lbw.factory.factorymethod.pizza;

/**
 * @author lbw
 * @version 1.0
 * @date 2021/9/5 11:36
 */
public abstract class Pizza {
    private String name;

    public Pizza(String name) {
        this.name = name;
    }

    public Pizza() {
    }

    public abstract void prepare();

    public void bake() {
        System.out.println(name + "baking");
    }

    public void cut() {
        System.out.println(name + "cutting");
    }

    public void box() {
        System.out.println(name + "boxing");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
